/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.mes.domain.query;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Objects;

/**
 *
 *
 * @author zsp
 * @date 2022-1-6
 */
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Data
public class ManufactureTaskByIdQuery {

    /**
     * 返回记录的起始位置。
     */
    private Integer offset;

    /**
     * 返回记录的个数。
     */
    private Integer rows;

    /**
     * 生产订单Id
     */
    private Long manufactureTaskId;
    /**
     * 查询物料信息
     */
    private Boolean withGoodsFlag;
    /**
     * 查询记录
     */
    private Boolean withRecordFlag;
    /**
     * 查询设备
     */
    private Boolean withEquipmentFlag;


    public Boolean getWithGoodsFlag() {
        return Objects.equals(true, withGoodsFlag);
    }

    public Boolean getWithRecordFlag() {
        return Objects.equals(true, withRecordFlag);
    }

    public Boolean getWithEquipmentFlag() {
        return Objects.equals(true, withEquipmentFlag);
    }

}
